// src/trademark/dto/create-trademark.dto.ts
import { IsNotEmpty, MaxLength } from 'class-validator';

export class CreateTrademarkDto {
  @IsNotEmpty({ message: '商标名称不能为空' })
  @MaxLength(255)
  name: string;

  @IsNotEmpty({ message: '申请日期不能为空' })
  applicationDate: Date;

  @IsNotEmpty({ message: '注册日期不能为空' })
  registrationDate: Date;

  @IsNotEmpty({ message: '申请人不能为空' })
  @MaxLength(255)
  applicant: string;

  @IsNotEmpty({ message: '企业ID不能为空' })
  enterpriseId: number;
}
